|
|
|
|
|
|
|
The RasTest2.vbp program (on the CD that comes with this book) will either result in error 632 (incorrect structure size) or, more likely, fail with a compile time error. This isn't surprising, since the structure is defined as follows: |
|
|
|
|
|
|
|
|
Public Type RASDIALPARAMS
dwSize As Long
' Well?
End Type |
|
|
|
|
|
|
|
|
That's right. It's your job to figure out the declaration for this structure. |
|
|
|
|
|
|
|
|
But I won't abandon you completely. Here are some excerpts from the C header files that should help. |
|
|
|
|
|
|
|
|
#include <pshpack4.h>
#define RAS_MaxDeviceType 16
#define RAS_MaxPhoneNumber 128
#define RAS_MaxIpAddress 15
#define RAS_MaxIpxAddress 21
#if (WINVER >= 0x400)
#define RAS_MaxEntryName 256
#define RAS_MaxDeviceName 128
#define RAS_MaxCallbackNumber RAS_MaxPhoneNumber
#else
#define RAS_MaxEntryName 20
#define RAS_MaxDeviceName 32
#define RAS_MaxCallbackNumber 48
#endif |
|
|
|
|
|
|
|
|
//
// String Lengths for various LanMan names
// |
|
|
|
|
|